
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";

export class TableEquipmentLvConf {
    static TableName: string = "EquipmentLvConf";

    private data: any;

    init(id: number) {
        var table = JsonUtil.get(TableEquipmentLvConf.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 加血 */
    get hp_attr(): any {
        return this.data.hp_attr;
    }
    /** 加攻 */
    get atk_attr(): any {
        return this.data.atk_attr;
    }
    /** 加防御 */
    get def_attr(): any {
        return this.data.def_attr;
    }
    /** 升级消耗 */
    get lv_spend(): number {
        return this.data.lv_spend;
    }
    /** key_id */
    get key_id(): number {
        return this.data.key_id;
    }
}
    